module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const RoleSchema = new Schema({
    name: {
      type: String,
      require: true // 必填项
    },
    author: {
      type: String,
      require: true
    },
    // 样品名字
    simple_name: {
      type: String,
      require: true
    },
    // 操作日期
    date: {
      type: String,
      require: true
    },
    // 视频地址
    video_url: {
      type: Object,
      require: true
    },
    // 视频名称
    video_name: {
      type: Object,
      require: true
    },
    // 压强
    pressure: {
      type: Number,
      require: true
    },
    // 加压时间
    stress_time: {
      type: Number,
      require: true
    }
  });
  return mongoose.model("VideoManage", RoleSchema, "video_manage");
};
